    <div class="widget-top">
        <h4>Nouveau matiere</h4>
    </div>
    <div class="form-grid">
        <form id="form_matiere" class="leftLabel" action="{{ path('int_user_etudient') }}" {{ form_enctype(form) }} method="POST" class="fos_user_registration_register">
            <li>
                <label class="fldTitle">Code</label>
                <div class="fieldwrap">
                    <span class="fldcol left">
                    {{form_widget(form.code,{'attr':{'class':'full'}})}}  
                    </span>  
               </div>
            </li>
            <li>
            <label class="fldTitle">Designation</label>
            <div class="fieldwrap">
                     <span class="fldcol left">
                    {{form_widget(form.designation,{'attr':{'class':'full'}})}}  
                    </span> 
               </div>
            </li>
            <li>
            <label class="fldTitle">Coefficient</label>
            <div class="fieldwrap"> 
                     <span class="fldcol left">
                    {{form_widget(form.coefficient,{'attr':{'class':'full'}})}}  
                    </span> 
               </div>
            </li>
            <li class="buttons bottom-round noboder">
                <div class="fieldwrap" style="margin-left: 583px;">
                    <input onclick="saveMatiere()" class="submit-button" type="button" value="{{ 'Submit'|trans({}, 'FOSUserBundle') }}" name="">
                    <input class="submit-button" type="reset" value="{{ 'Reset'|trans({}, 'FOSUserBundle') }}" name="">
                </div>
           </li>

       </form>
<script>
function saveMatiere(){
        $.ajax({
            type: 'post',
                url: '{{path('int_add_edit_matiere')}}',
                data: $('#form_matiere').serialize()+'&id={{id}}',
                success: function(response) {
                    $('#liste_matiere').html(response)
                    $('#form_matiere').html('')
                }
            })
        }
    </script>

    </div>
        
